package net.domor.stock.biz.entity;

import net.domor.stock.core.entity.Entity;

import javax.persistence.Id;
import java.util.List;

/**
 * 类别
 */
public class Category extends Entity {

    private String code;

    private String name;

    private List<Category> children;

    public Category() {}

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Category> getChildren() {
        return children;
    }

    public void setChildren(List<Category> children) {
        this.children = children;
    }
}
